from appium.webdriver.common.mobileby import MobileBy

from HomeWork_PO_Apptest_add_and_delete_members.base.base_page import BasePage
from HomeWork_PO_Apptest_add_and_delete_members.page.editmember2_page import EditMember2Page


class MemberInfo2Page(BasePage):
    def click_edit_member(self):
        self.driver.find_element(MobileBy.XPATH, "//*[@text='编辑成员']").click()

        return EditMember2Page(self.driver)